package activity
import history.*


class Inform {
    String name
    String active = "N"//啟用
    String subject
    String content
    String timing//寄送時機，(報名/補到/自行取消/審過/審拒)活動取消/行前改成手動
    History history

    static constraints = {
        name(blank:false)
        active(nullable:true,inList:["Y", "N"])
        subject(blank:false)
        content(blank:false,size:0..2000)
        timing(nullable:true,size:0..10,inList:["正取報名","候補報名","候補補到","待審報名","報名審過","報名審拒","自行取消","全部成員","手動通知"])
        history(nullable:true)
    }
    
    String toString() {
        name
    }
}